function RxShowUI()
  --- 1 采用 table -> ShowUI
  local opt = 'main'
  -- local opt = 'root'
  -- local opt = 'freetask'
  UiMain(opt)

  --- 2 采用 UINew 创建 UI -> ShowUI
  -- RxShowUI_back()
end


--- 2.  采用 UINew 创建 UI
function RxShowUI_back()
  local w,h = width,height

  local LabelColor = "230,50,92"
  local GreenColor = '80,187,50'
  local LabelPositionLeft = "left"
  local LabelPositionCenter = "center"
  local LabelSizeLarge = 16
  local LabelSizeSmall = 14
  local LabelSizeDes = 12
  local LineHeight = 1
  local LineMinWidth = 250
  local LineColor = "0,0,0"
  local LineGreyColor = "60,179,113"
  local bgColor = "255,255,255"

  UINew(4, "功能,敦煌设置,日常任务,注意事项", "运行", "退出", "rxsgs_paosanguo_main.dat", 2, 1000, w, h,bgColor,bgColor,"","tab",1,15,"left")

  UILabel(1, "分辨率、尺寸: 540x960", LabelSizeLarge, LabelPositionLeft,  LabelColor)
  UILine(1, LabelPositionCenter,600,LineHeight,LineColor)

  UILabel(1, "选择脚本", LabelSizeLarge, LabelPositionCenter,  LabelColor)
  UILabel(1, "全天自动模式(日常任务、Boss、宴会、分享暴动)", LabelSizeSmall, LabelPositionLeft,  LabelColor)
  UISwitch(1, "rxthreadAuto", "on")
  UILine(1, LabelPositionLeft,LineMinWidth,LineHeight,LineGreyColor)
  UIRadio(1, "rxrdo", "无,测试,接单模式,接单(1次),标准模式,无尽模式,无尽(1次),每日任务,自动推图,抽变身卡,军团战(攻击),监听战斗模式,无限游历,boss", "3")
  UILine(1, LabelPositionLeft,LineMinWidth,LineHeight,LineGreyColor)
  UILabel(1, tsPkTime, LabelSizeSmall, LabelPositionLeft,  GreenColor)
  UILabel(1, tsPkGit, LabelSizeSmall, LabelPositionLeft,  GreenColor)
  UILine(1, LabelPositionCenter,600,LineHeight,LineColor)

  UILabel(2, "敦煌跑图记录保留天数", LabelSizeSmall, LabelPositionLeft,  GreenColor)
  UICombo(2, "rxdh_saveday", "1,3,7,15,30", "1")
  UILine(2, LabelPositionLeft,LineMinWidth,LineHeight,LineGreyColor)

  UILabel(2, "敦煌 - 荭包 - 是否自动领取", LabelSizeSmall, LabelPositionLeft,  GreenColor)
  UICombo(2, "rxdhRedbag","无,领取", "1")
  UILine(2, LabelPositionLeft,LineMinWidth,LineHeight,LineGreyColor)

  UILabel(2, "敦煌悬浮框-显示内容 扩展选择", LabelSizeSmall, LabelPositionLeft,  GreenColor)
  UICheck(2, "rxdhFloat1,rxdhFloat2,rxdhFloat3,rxdhFloat4","元宝,水池,枯萎的植物-浇水,神气的胖子", "0")
  UILine(2, LabelPositionLeft,LineMinWidth,LineHeight,LineGreyColor)

  UILabel(2, "神秘老者-当前官衔", LabelSizeSmall, LabelPositionLeft,  GreenColor)
  UICombo(2, "rxdh_guanxian", "自动识别,太尉,大司马,大司徒,大司空,大将军,大都督,卫将军,尚书令,京兆尹,中郎将,刺史,太守,校尉,都尉,司马,护军", "0")
  UILine(2, LabelPositionLeft,LineMinWidth,LineHeight,LineGreyColor)

  UILabel(2, "神秘老者-当前等级", LabelSizeSmall, LabelPositionLeft,  GreenColor)
  UICombo(2, "rxdh_dengji", "自动识别,120", "0")
  UILine(2, LabelPositionLeft,LineMinWidth,LineHeight,LineGreyColor)

  UILabel(2, "神神叨叨的胖子 - 如果没有跑过图，请手动跑图`给100玉璧`", LabelSizeSmall, LabelPositionLeft,  GreenColor)
  UICombo(2, "rxdh_ssdddpz", "100银两,100元宝,100玉璧", "1")
  UILine(2, LabelPositionLeft,LineMinWidth,LineHeight,LineGreyColor)
  UILabel(2, "奇异的水池", LabelSizeSmall, LabelPositionLeft,  GreenColor)
  UICombo(2, "rxdh_qydsc", "1银币,1元宝,1玉璧", "2")
  UILine(2, LabelPositionLeft,LineMinWidth,LineHeight,LineGreyColor)
  UILabel(2, "枯萎的植物 - 灌溉(露水，冰清水，寒梅藴水，上古神水)", LabelSizeSmall, LabelPositionLeft,  GreenColor)
  UICombo(2, "rxdh_kwdzw", "灌溉xx,挖取植物,无视", "0")
  UILine(2, LabelPositionLeft,LineMinWidth,LineHeight,LineGreyColor)
  UILabel(2, "华丽的宝箱 - 打开次数", LabelSizeSmall, LabelPositionLeft,  GreenColor)
  UICombo(2, "rxdh_hldbx", "1,2,3,4,5,6,7,8,9,10", "3")
  UILine(2, LabelPositionLeft,LineMinWidth,LineHeight,LineGreyColor)
  UILabel(2, "神秘行商 - 默认不购买", LabelSizeSmall, LabelPositionLeft,  GreenColor)
  UIRadio(2, "rxdh_smxs1,rxdh_smxs2", "不买,玄天八卦-2个75玉璧", "0")
  UILine(2, LabelPositionLeft,LineMinWidth,LineHeight,LineGreyColor)
  UILabel(2, "探险者 - 挑战", LabelSizeSmall, LabelPositionLeft,  GreenColor)
  UICombo(2, "rxdh_txz", "最弱,相等", "0")
  UILine(2, LabelPositionLeft,LineMinWidth,LineHeight,LineGreyColor)
  UILabel(2, "可疑的男子", LabelSizeSmall, LabelPositionLeft,  GreenColor)
  UICombo(2, "rxdh_kydnz", "100购买丹药,抢夺,驱赶", "0")
  UILine(2, LabelPositionLeft,LineMinWidth,LineHeight,LineGreyColor)
  UILabel(2, "粗心的探宝者", LabelSizeSmall, LabelPositionLeft,  GreenColor)
  UICombo(2, "rxdh_cxdtbz", "击晕对方,故意发出声响", "1")
  UILine(2, LabelPositionCenter,600,LineHeight,LineColor)

  -- 每日任务
  UILabel(3, "福利-五谷丰登 (选择3个)", LabelSizeSmall, LabelPositionLeft,  LabelColor)
  UICheck(3, "rxrc_wgfd1,rxrc_wgfd2,rxrc_wgfd3,rxrc_wgfd4,rxrc_wgfd5,rxrc_wgfd6,rxrc_wgfd7","十年杜康,金砚台,刷新令,突破丹,神兵进阶石,宝物精炼石,觉醒丹","0@1@3")
  UILine(3, LabelPositionLeft,LineMinWidth,LineHeight,LineGreyColor)
  UILabel(3, "召唤-身外化身-消耗所有-玄天八卦", LabelSizeSmall, LabelPositionLeft,  LabelColor)
  UICombo(3, "rxrc_summon", "无,消耗全部", "1")
  UILine(3, LabelPositionLeft,LineMinWidth,LineHeight,LineGreyColor)
  UILabel(3, "军团-自修", LabelSizeSmall, LabelPositionLeft,  LabelColor)
  UISwitch(3, "rxrc_legion_zx", "on")
  UILine(3, LabelPositionCenter,600,LineHeight,LineColor)

  -- 注意事项
  UILabel(4, "使用须知", LabelSizeLarge, LabelPositionLeft, LabelColor)
  UILabel(4, "★ 分辨率、尺寸: 540x960", LabelSizeDes, LabelPositionLeft, LabelColor)
  UILabel(4, "★ 进入游戏后再 [运行]脚本", LabelSizeDes, LabelPositionLeft, LabelColor)
  UILabel(4, "★ 进入游戏采用横屏，不支持竖屏", LabelSizeDes, LabelPositionLeft, LabelColor)
  UILabel(4, "★ 不允许[脚本运行中]切换其他应用", LabelSizeDes, LabelPositionLeft, LabelColor)
  UILabel(4, "★ 网络不畅通，游戏会退出，请手动打开游戏并运行脚本", LabelSizeDes, LabelPositionLeft, LabelColor)
  UILabel(4, "★ 游戏挑战失败就退出，脚本停止不在运行", LabelSizeDes, LabelPositionLeft, LabelColor)
  UILabel(4, "★ 不要手动干预脚本运行", LabelSizeDes, LabelPositionLeft, LabelColor)
  UILabel(4, "---------------------------------", LabelSizeDes, LabelPositionLeft, LabelColor)
  UILabel(4, "★ 敦煌-图片识别插件: 'tsimg.so' : [触动精灵 app]-> [底部导航-我的账号] -> [文件管理] -> [插件] - [官方插件]", LabelSizeDes, LabelPositionLeft, LabelColor)
  UILabel(4, "★ 敦煌-文字识别插件: 'chi_sim'  , [触动精灵 app]-> [底部导航-我的账号] -> [文件管理] -> [插件] - [官方插件]", LabelSizeDes, LabelPositionLeft, LabelColor)
  local UIret,values = UIShow()
  RxLog('全 - ShowUI UIret='..tostring(UIret)..'  values='..tostring(values))

  UiVaUINew()

  -- 启动脚本
  if RxDeviceScale() == 1 then
    RxLog('------------------- 启动游戏 ----------')
    RxJugeUI()
    RxLog('游戏停止运行')
    lua_exit()
  else
    RxLog('------------------- 脚本退出 ----------')
    lua_exit()
  end
end